class EventsController < ApplicationController
  def create
    @student = Student.find(params[:id])
    @event = @student.events.build(params[:event])
    if @event.save
      redirect_to student_path(:id => @student.id),:notice => "Event has been updated"
    end
  end
  
end
